<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
    <title>悦章科技机构平台</title>
    <script src="/Public/static/jquery-2.0.3.min.js"></script>
    <script src="/Public/static/layer/layer.js"></script>
    <!--内容样式-->
    <link rel="stylesheet" href="__PUBLIC__/Home/css/style.css" />
    <link rel="stylesheet" href="__PUBLIC__/Home/css/page.css" />

</head>

<body>
<div class="main">
    <!--  头部  -->
    <include file="menu" />

    <!--  右侧内容  -->
    <div class="content">


        <div class= "ct-title">
            <div class="ctt-bt">师资力量</div>
            <div class="ctt-r">
                <form class="cttr-bd" action="{:U('Home/Mechanism/faculty')}" method="post">
                    <select class="cttrb-xl" name="section_id">
                        <option value="">全部板块</option>
                        <volist name="section" id="vo">
                            <option value="{$vo.id}" <if condition="$section_id eq $vo['id']">selected</if>>{$vo.name}</option>
                        </volist>
                    </select>
                    <input type="text" placeholder="请输入老师名称" class="cttrb-wb" name="name" value="{$name}">
                    <button class="cttrb-cx">查询</button>
                    <a href="{:U('Home/Mechanism/addFaculty')}" class="cttrb-xz">新增老师</a>
                    <div class="divclear"></div>
                </form>
                <div class="divclear"></div>
            </div>
            <div class="divclear"></div>
        </div>

        <div class="ct-table">
            <table width="100%" border="0">
                <tbody>
                <tr>
                    <th scope="col" width="10%" style="border-top-left-radius: 10px;">老师名称</th>
                    <th scope="col" width="15%">标签</th>
                    <th scope="col" width="15%">所属板块</th>
                    <th scope="col" width="45%">签名</th>
                    <th scope="col" width="15%" style="border-top-right-radius: 10px;">操作</th>
                </tr>
                <volist name="_list" id="vo">
                    <tr>
                        <td>{$vo.name}</td>
                        <td>{$vo.tag}</td>
                        <td>{$vo.section_name}</td>
                        <td>{$vo.sign}</td>
                        <td>
                            <a href="{:U('Home/Mechanism/editFaculty',array('id'=>$vo['id']))}">编辑</a>
                            <a href="{:U('Home/Mechanism/delFaculty',array('id'=>$vo['id']))}">删除</a>
                        </td>
                    </tr>
                </volist>
                </tbody>
            </table>
        </div>

        <div class="page">
            {$_page}
        </div>
    </div>

</div>
</body>
</html>
